import request from '@/sheep/request';

const TransactionApi = {
  // 查询人情收支记录列表
  queryHumanTransactions: (data) => {
    return request({
      url: '/relation/money/queryHumanTransactions',
      method: 'POST',
      data,
      custom: {
        auth: true
      },
    });
  },
  // 查询人情收支记录详情
  queryHumanTransactionDetail: (data) => {
    return request({
      url: '/relation/money/queryHumanTransactionDetail',
      method: 'POST',
      data,
      custom: {
        auth: true
      },
    });
  },
  // 删除人情收支记录
  deleteHumanTransaction: (data) => {
    return request({
      url: '/relation/money/deleteHumanTransaction',
      method: 'POST',
      data,
      custom: {
        auth: true,
        successMsg: '删除成功'
      },
    });
  },
  // 添加或修改人情收支记录
  addOrUpdateHumanTransaction: (data) => {
    return request({
      url: '/relation/money/addOrUpdateHumanTransaction',
      method: 'POST',
      data,
      custom: {
        auth: true,
        successMsg: '设置成功'
      },
    });
  },

};

export default TransactionApi;
